import request from '/@/utils/request';
import { Session } from '/@/utils/storage';

export function login(data: any) {
	return request({
		url: 'api/auth/Account',
		method: 'post',
		data,
		// headers: { 'Content-Type': 'multipart/form-data' },
	});
}

// 刷新token
export function reshToken() {
	return request({
		url: 'api/auth/Account',
		isRefreshToken: true,
	});
}

// 刷新token
export function GetVerifyCode() {
	return request({
		url: 'api/Auth/GetVerifyCode',
	});
}
